<template>
    <div>
        <div class="cart-center">
            <div class="cart-box">
                <div class="cart-title">
                    <span class="goods-ti">商品</span>
                    <span class="birthday">生日牌</span>
                    <span class="unit-price">单价</span>
                    <span class="number">数量</span>
                    <span class="money">金额</span>
                </div>
                <div class="cart-main">
                    <div class="main-item" v-for="(item,index) in 3" :key="index">
                        <span class="item-image">
                            <a href="">
                                <img src="../assets/img/product/7ccf23aef5fe0dad7c9987173b43835f.jpg" alt="">
                            </a>
                            
                        </span>
                        <div class="main-text">
                            <span>Home Style Bread 家常面包套餐</span>
                            <div class="spec">
                                 <span>规格:</span>
                                <span>265g(一份)</span>
                            </div>
                           
                        </div>
                        <div class="select-bir">
                            <div class="action-bir">
                                <span>选择生日牌</span> 
                            </div>
                        </div>
                        <span class="item-price">¥41.40</span>
                        <div class="item-number">
                            <span class="jian">-</span>
                            <span>1</span>
                            <span class="jia">+</span>
                        </div>
                        <div class="item-money">
                          <span>¥41.4</span>  
                            </div>
                            <span class="del">
                                <i></i>
                            </span>
                    </div>
                    <div class="main-goods">
                        <div class="goods" v-for="(item,index) in 10" :key="index">
                    
                                <img src="../assets/img/product/7ccf23aef5fe0dad7c9987173b43835f.jpg" alt="">
                           
                            <div class="goods-center">
                                <div class="goods-text">
                                    <span>轻蛋糕（猫山王奶油）</span>
                                    <span>¥39.00/105g(个)</span>
                                </div>
                                <span>
                                    <i></i>
                                </span>
                            </div>
                        </div>
                    </div>
                </div>
                </div>
                <div class="cart-submit">
                    <div class="set-left">
                        <span class="set-icon">
                            <i></i>
                        </span>
                        <span class="clear">全部清空</span>
                    </div>
                    <div class="set-right">
                        <div>
                            <div>商品金额: <span>¥80.40</span> </div>
                            <div>活动优惠:
                               <span>¥0.00</span> </div>
                            <div>合计:&nbsp;¥
                                <p>80.40</p> </div>
                        </div>
                        <span class="btn">去结算</span>
                    </div>
                </div>
            
            <div class="recommend">
          
                    <span class="recommend-title">商品推荐</span>
        
                    <div class="recommend-pro">
                        <div class="recommend-list" v-for="(item,index) in 4" :key="index">
                            <img src="../assets/img/home/73f2cce7b5ed207b0407b1672cfd0421.png" alt="">
                        </div>
                
                </div>
                
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        
    }
</script>

<style lang="scss" scoped>
*{
    margin: 0;
    padding: 0;
}
.cart-center {
    font-family: 'PingFang SC','Heiti SC','微软雅黑',Helvetica,Arial;
    font-size: 12px;
    color: #684029;
    overflow-x: hidden;
}
.cart-center{
    width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}
.cart-box{
    margin-top: 32px;
    font-size: 13px;
}
.cart-title{
    background-color: #fafafa;
    height: 50px;
    display: flex;
    line-height: 50px;
    border: 1px solid #e1e1e1;
}
.cart-title .goods-ti{
    width: 285px;
    margin-left: 166px;
}
.cart-title .birthday{
    width: 300px;
}
.cart-title .unit-price{
    width: 115px;
}
.cart-title .number{
    width: 150px;
}
.cart-title .money{
    width: 180px;
}
.cart-main{
    background-color: #fff;
    margin-top: 20px;
    border:1px solid #e1e1e1;
}
.cart-main .main-item{
   display: flex;
   height: 138px;
   align-items: center;
   border-bottom: 2px dashed #F1F1F1;
   padding: 24px 0;
}
.cart-main .main-item .item-image{
    width: 106px;
}
.cart-main .main-item .item-image a{
    margin-left: 60px;
    display: block;
    padding-right: 12px;
}
.cart-main .main-item .item-image a img{
    height: 80px;
    width: 80px;
    border: 1px solid #EFEFEF;
}
.cart-main .main-item .main-text{
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left:50px;

}
.cart-main .main-item .main-text>span{
    font-size: 14px;
    cursor: pointer;
    width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-main .main-item .main-text>span:hover{
    color:#d5bfa7;
}
.cart-main .main-item .main-text .spec{
    display: flex;
    margin-top: 5px;
    color:#d5bfa7;
}
.cart-main .main-item .main-text .spec>span:nth-child(1){
    margin-right: 8px;
}
.cart-main .main-item .select-bir{
   width: 300px;
}
.cart-main .main-item .select-bir .action-bir{
    border: 1px solid #D5D5D5;
    width: 226px;
    height: 22px;
    color: #D8C3AD;
    outline: none;
    padding-left: 8px;
    cursor: pointer;
    line-height: 22px;
}
.cart-main .main-item .item-price{
    width: 115px;
}
.cart-main .main-item .item-number{
    width: 150px;
    display: flex;
}
.cart-main .main-item .item-number .jia,
.cart-main .main-item .item-number .jian{
    width: 22px;
    height: 22px;
    cursor: pointer;
    display: block;
    text-align: center;
    border: 1px solid #e7e7e7;
    font-size: 16px;
    line-height: 22px;
}
.cart-main .main-item .item-number>span:nth-child(2){
    width: 48px;
    height: 22px;
    border:1px solid #e7e7e7;
    display: block;
    padding: 0 5px;
}
.cart-main .main-item .item-money{
    width: 100px;
    color: #FF714D;
}
.cart-main .main-item .del{
    cursor: pointer;
}
.cart-main .main-item .del>i{
    margin-left: 44px;
    height: 12px;
    width: 12px;
    display: inline-block;
    background-image: url('../assets/img/download.png');
    background-repeat: no-repeat;
    background-position: -221px -70px;
    background-size: 310px 120px;

}
.cart-main .main-goods {
    margin-left: 60px;
    padding: 15px 0;
    border-top: 2px solid #E0E0E0;
    margin-top: -1px;
    margin-right: 60px;
    display: flex;
    flex-wrap: wrap;
}
.cart-main .main-goods .goods{
    margin-right: 25px;
    padding: 12px 0;
    display: flex;
}
.cart-main .main-goods .goods img{
    height: 80px;
    width: 80px;
    border: 1px solid #EFEFEF;
    display: inline-block;
}
.cart-main .main-goods .goods .goods-center{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 20px;
    width: 140px;
}
.cart-main .main-goods .goods .goods-center span{
    display: block;
    cursor: pointer;
}
.cart-main .main-goods .goods .goods-center span>i{
    width: 24px;
    height: 24px;
    display: inline-block;
    background: url('../assets/img/download.png') no-repeat;
    background-position: -194px -70px;
    background-size: 310px 120px;
}
.cart-main .main-goods .goods .goods-text{
    display: flex;
    flex-direction: column;
}
.cart-main .main-goods .goods .goods-text span:nth-child(1){
    width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 18px;
    line-height: 18px;
}
.cart-main .main-goods .goods .goods-text span:nth-child(2){
    height: 18px;
    font-size: 13px;
    line-height: 18px;
    color: #D5BFA7;
}
.cart-submit{
    background: #FBFBFB;
    border: 1px solid #E1E1E1;
    padding: 26px 60px 32px 60px;
    margin: 20px 0;
    position: relative;
    display: flex;
    justify-content: space-between;
}
.cart-submit .set-left{
    display: flex;
}
.cart-submit .set-left .set-icon{
    position: absolute;
    top:25px;
    left: 60px;
    display: block;
}
.cart-submit .set-left .set-icon>i{
    display: inline-block;
    width: 18px;
    height: 21px;
    background: url('../assets/img/download.png') no-repeat;
    background-position:-148px -71px;
    background-size: 310px 120px;
    vertical-align: middle;
    margin-right: 18px;
    margin-bottom: 4px;
}
.cart-submit .set-left .clear{
    display: inline-block;
    margin-left: 50px;
}
.cart-submit .set-right{
    display: flex;
    flex-direction: column;
}
.cart-submit .set-right>div{
    display: flex;
    flex-direction: column;
    text-align: right;
}
.cart-submit .set-right>div>div{
    line-height: 18px;
    margin-bottom: 10px;
}
.cart-submit .set-right>div>div>span{
     margin-left: 4px;
}

.cart-submit .set-right>div>div>p{
    color: #FF714D;
    display: inline-block;
}
.cart-submit .set-right .btn{
    background: #684029;
    width: 232px;
    height: 40px;
    display: inline-block;
    color: #fff;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    margin-top: 14px;
}
.cart-submit .set-right .btn:hover{
    background-color: rgba(0,0,0,0.8);
}
.recommend{
    margin-top: 48px;
    padding-bottom: 42px;
}
.recommend .recommend-title{
    display: inline-block;
    width: 100%;
    font-size: 18px;
    line-height: 50px;
    border-bottom: 2px solid #CECAC7;
}
.recommend .recommend-pro{
    display: flex;
    flex-wrap: wrap;
    margin: 22px 0 0 ;
    justify-content: space-between;
}
.recommend .recommend-pro .recommend-list{
    cursor: pointer;
}
.recommend .recommend-pro .recommend-list img{
    display: block;
    height: 252px;
    width: 252px;
}
</style>